import React from 'react';
import {
  HashRouter,
  Switch,
  Route,
} from "react-router-dom";
import Index from '../page/Index';
import LoginByUserId from '../page/Login/LoginByUserId';
import ChangeBaseConfig from '../page/Login/ChangeBaseConfig';
import MessageChannel from '../page/Chat/MessageChannel';
import LayoutSetting from '../page/Chat/LayoutSetting';
import ConversationGroupManage from '../page/Chat/ConversationGroupManage';
import ConversationGroupManageSwitch from '../page/Chat/ConversationGroupManageSwitch';
import ConversationGroupEdit from '../page/Chat/ConversationGroupEdit';
import AddToConversationGroup from '../page/Chat/AddToConversationGroup';
import ConversationGroupList from '../page/Chat/ConversationGroupList';
import StrongReminderMessageList from '../page/Chat/StrongReminderMessageList';
import StrongReminderRecycleBin  from '../page/Chat/StrongReminderRecycleBin';
import ChatDetail from '../page/Chat/ChatDetail';
import ChatDetailSetting from '../page/Chat/ChatDetailSetting';
import SearchMessageContent from '../page/Chat/SearchMessageContent';
import SearchMessageFile from '../page/Chat/SearchMessageFile';
import SearchMessagePicture from '../page/Chat/SearchMessagePicture';
import SearchMessageLink from '../page/Chat/SearchMessageLink';
import ChatGroupDetailSetting from '../page/Chat/ChatGroupDetailSetting';
import GroupMember from '../page/Chat/GroupMember';
import GroupPermissionMute from '../page/Chat/GroupPermissionMute';
import GroupAdmin from '../page/Chat/GroupAdmin';
import SecretChatSetting from '../page/Chat/SecretChatSetting';
import GlobalSearch from '../page/Chat/GlobalSearch';
import SendMessageByBatch from '../page/Chat/SendMessageByBatch';
import ChatGroupPermission from '../page/Chat/ChatGroupPermission';
import CreateMeeting from '../page/Chat/CreateMeeting';
import RtcInvite from '../page/Chat/RtcInvite';
import MeetingDetail from '../page/Chat/MeetingDetail';
import Rtc from '../page/Chat/Rtc';
import MailList from '../page/MailList/List';
import UserInfo from '../page/MailList/UserInfo';
import NewFriendList from '../page/MailList/NewFriendList';
import JoinGroupApplyList from '../page/MailList/JoinGroupApplyList';
import AddFriend from '../page/MailList/AddFriend';
import FriendList from '../page/MailList/FriendList';
import ContactorList from '../page/MailList/ContactorList';
import GroupList from '../page/MailList/GroupList';
import MyInfo from '../page/Mine/MyInfo';
import ModifyMyInfo from '../page/Mine/ModifyMyInfo';
import CallList from '../page/Mine/CallList';
import CallDetail from '../page/Mine/CallDetail';
import CollectionList from '../page/Mine/CollectionList';
import CollectionFold from '../page/Mine/CollectionFold';
import MySetting from '../page/Mine/MySetting';
import GlobalSetting from '../page/Mine/GlobalSetting';
import MyQrCode from '../page/Mine/MyQrCode';
import ModifyCollection from '../page/Mine/ModifyCollection';

export default function({ mySdkStore }){
  return (
    <HashRouter>
      <Switch>
        <Route path="/" exact>
          <Index />
        </Route>
        <Route path="/mailList" exact>
          <Index />
        </Route>
        <Route path="/aboutMe" exact>
          <Index />
        </Route>
        <Route path="/messageChannel/:defaultActiveKey">
          <MessageChannel />
        </Route>
        <Route path="/layoutSetting">
          <LayoutSetting />
        </Route>
        <Route path="/conversationGroupList/:groupId">
          <ConversationGroupList />
        </Route>
        <Route path="/conversationGroupManageSwitch">
          <ConversationGroupManageSwitch />
        </Route>
        <Route path="/ConversationGroupManage">
          <ConversationGroupManage />
        </Route>
        <Route path="/conversationGroupEdit/:groupId/:groupName">
          <ConversationGroupEdit />
        </Route>
        <Route path="/addToConversationGroup/:groupId">
          <AddToConversationGroup />
        </Route>
        <Route path="/strongMessage">
          <StrongReminderMessageList />
        </Route>
        <Route path="/strongReminderRecycleBin">
          <StrongReminderRecycleBin />
        </Route>
        <Route path="/rtc">
          <Rtc />
        </Route>
        <Route path="/rtcInvite">
          <RtcInvite />
        </Route>
        <Route path="/chatDetail/:cid">
          <ChatDetail />
        </Route>
        <Route path="/createMeeting">
          <CreateMeeting />
        </Route>
        <Route path="/meetingDetail/:cid">
          <MeetingDetail />
        </Route>
        <Route path="/GlobalSearch">
          <GlobalSearch />
        </Route>
        <Route path="/sendMessageByBatch">
          <SendMessageByBatch />
        </Route>
        <Route path="/chatDetailSetting/:cid">
          <ChatDetailSetting />
        </Route>
        <Route path="/searchMessageContent/:cid">
          <SearchMessageContent />
        </Route>
        <Route path="/searchMessageFile/:cid">
          <SearchMessageFile />
        </Route>
        <Route path="/searchMessagePicture/:cid">
          <SearchMessagePicture />
        </Route>
        <Route path="/searchMessageLink/:cid">
          <SearchMessageLink />
        </Route>
        <Route path="/chatGroupDetailSetting/:cid">
          <ChatGroupDetailSetting />
        </Route>
        <Route path="/groupMember/:cid">
          <GroupMember />
        </Route>
        <Route path="/groupPermissionMute/:cid">
          <GroupPermissionMute />
        </Route>
        <Route path="/groupAdmin/:cid">
          <GroupAdmin />
        </Route>
        <Route path="/secretChatSetting">
          <SecretChatSetting />
        </Route>
        <Route path="/mailList">
          <MailList />
        </Route>
        <Route path="/userInfo/:userId">
          <UserInfo />
        </Route>
        <Route path="/joinGroupApplyList">
          <JoinGroupApplyList />
        </Route>
        <Route path="/newFriendList">
          <NewFriendList />
        </Route>
        <Route path="/contactorList">
          <ContactorList />
        </Route>
        <Route path="/addFriend">
          <AddFriend />
        </Route>
        <Route path="/friendList">
          <FriendList />
        </Route>
        <Route path="/groupList">
          <GroupList />
        </Route>
        <Route path="/myInfo">
          <MyInfo />
        </Route>
        <Route path="/modifyMyInfo">
          <ModifyMyInfo />
        </Route>
        <Route path="/callList">
          <CallList />
        </Route>
        <Route path="/callDetail">
          <CallDetail />
        </Route>
        <Route path="/collectionList">
          <CollectionList />
        </Route>
        <Route path="/collectionFold/:tagCode">
          <CollectionFold />
        </Route>
        <Route path="/mySetting">
          <MySetting />
        </Route>
        <Route path="/GlobalSetting">
          <GlobalSetting />
        </Route>
        <Route path="/myQrCode">
          <MyQrCode />
        </Route>
        <Route path="/loginByUserId">
          <LoginByUserId />
        </Route>
        <Route path="/changeBaseConfig">
          <ChangeBaseConfig />
        </Route>
        <Route path="/myInfo">
          <MyInfo />
        </Route>
        <Route path="/modifyMyInfo">
          <ModifyMyInfo />
        </Route>
        <Route path="/modifyCollection/:tagCode">
          <ModifyCollection />
        </Route>
        <Route path="/chatGroupPermission/:cid">
          <ChatGroupPermission />
        </Route>
      </Switch>
    </HashRouter>)
}